package com.sample.wanandroidx.dialog

import android.content.Context
import android.view.View
import com.lxj.xpopup.core.CenterPopupView
import com.sample.wanandroidx.R

class PrivacyDialog(context: Context) : CenterPopupView(context) {

    override fun getImplLayoutId(): Int {
        return R.layout.dialog_privacy
    }

    override fun onCreate() {
        super.onCreate()
        findViewById<View>(R.id.cancel).setOnClickListener {
            dismiss()
        }
        findViewById<View>(R.id.agree).setOnClickListener {
            dismiss()
        }
    }

}